<%--
  Created by IntelliJ IDEA.
  User: han tao
  Date: 2023/4/20
  Time: 9:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script>
        window.onload=function () {
            //获取元素
            var span = document.getElementById("span");
            //获取文本值
            var innerText = span.innerText;
            window.setInterval(change,1000);
            //定义一个方法改变值
            function change() {
                if (innerText==0){
                    location.href="http://localhost:8080/admin?action=findTea"
                }
                innerText--;
                //重新赋值
                span.innerText=innerText;
            }

        }
    </script>
</head>
<body>
<h1>${message}</h1>
<%--多少秒钟之后跳转到首页--%>
<p>将在 <span style="color: red" id="span">5</span>秒之后跳转到用户界面</p>
</body>
</html>

